package com.koron.standard.patrol.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.koron.standard.patrol.bean.po.Patrol;
import com.koron.standard.patrol.bean.vo.PatrolVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 巡视标准(Patrol)表数据库访问层
 *
 * @author jzp
 * @since 2021-10-19
 */
public interface PatrolMapper extends BaseMapper<Patrol> {
    PatrolVO getVoById(String id);

    Page<PatrolVO> selectPageVo(@Param("page") IPage<PatrolVO> page, @Param(Constants.WRAPPER) Wrapper<PatrolVO> queryWrapper);

    List<PatrolVO> selectPageVo(@Param(Constants.WRAPPER) Wrapper<PatrolVO> queryWrapper);

}
